﻿using System;
using UnityEngine;

namespace Valve.VR.InteractionSystem
{
	// Token: 0x0200062F RID: 1583
	public class Unparent : MonoBehaviour
	{
		// Token: 0x06002803 RID: 10243 RVA: 0x000E8BAC File Offset: 0x000E6DAC
		private void Start()
		{
			this.oldParent = base.transform.parent;
			base.transform.parent = null;
			base.gameObject.name = this.oldParent.gameObject.name + "." + base.gameObject.name;
		}

		// Token: 0x06002804 RID: 10244 RVA: 0x000E8C08 File Offset: 0x000E6E08
		private void Update()
		{
			if (this.oldParent == null)
			{
				UnityEngine.Object.Destroy(base.gameObject);
			}
		}

		// Token: 0x06002805 RID: 10245 RVA: 0x000E8C28 File Offset: 0x000E6E28
		public Transform GetOldParent()
		{
			return this.oldParent;
		}

		// Token: 0x04002806 RID: 10246
		private Transform oldParent;
	}
}
